const { defineConfig } = require('@vue/cli-service')

const proxyObj = {}
const targetURL = "http://localhost:8088";

proxyObj['/api'] = {
  ws: false,
  target: targetURL,
  changeOrigin: true,
  pathRewrite: {
    '^/api': ''
  }
}

module.exports = defineConfig({
  transpileDependencies: true,

  devServer: {
    host: "localhost",
    port: 8080,
    proxy: proxyObj
  }


})
